<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<meta name="Author" content="Stu Nicholls" />
<link rel="stylesheet" type="text/css" href="/${initParam.context_root }/css/menu_css/pro_dropdown_2.css" />
<script src="/${initParam.context_root }/css/menu_css/stuHover.js" type="text/javascript"></script>
</head>
<body>
<span class="preload1"></span>
<span class="preload2"></span>
		<br>
		<br>
 		<ul id="nav" >
	 		<li class="top"><a href="randomImage.do" class="top_link">
					<span ><img src="/${initParam.context_root }/img/logo_.png" width="60" height="40" style="border-width:0px;"></span></a>
			</li>
 		<c:choose>
 			<c:when test="${sessionScope.login_info == null }">
 				<li class="top"><a href="register_form.do" class="top_link">
				<span >Sign up</span></a>
				</li>
				<li class="top"><a href="login_form.do" class="top_link">
				<span >Login</span></a>
				</li>
			</c:when>
			<c:otherwise>
			<li class="top" ><a href="#" id="products" class="top_link">
			<span class="down">welcome! ${sessionScope.login_info.first_name } ${sessionScope.login_info.last_name}</span></a>
				<ul class="sub" >
					<li><a  href="owner_menu.do">Menu</a></li>
			 		<li><a  href="roominput.do">List your space</a> </li>
			 		<li><a   href="logout.do">Logout</a></li>
				</ul>
			</li>

			<li class="top"><a href="getAllMessageInfo.do" class="top_link">
			<span ><img src="/${initParam.context_root }/img/message.png" align="bottom" width="30" height="20" style="border: 0;"></span></a>

			</li>
			</c:otherwise>
			</c:choose>
		</ul>
</body>
</html>


